<template>
  <div>
    <div class="home_title">
      <img src="../assets/logo.png" alt="">
      <span>眼底病智能筛查系统</span>
    </div>
    <div class="home_wrapper">
      <div class="home_icon">
        <img src="../assets/logo.png" alt="">
      </div>
      <!--</div>-->
      <div class="home_login">
        <p>请选择用户模式</p>
        <router-link :to="{name: 'login', params: {type:0}}">
          <button>个人</button>
        </router-link>
        <router-link :to="{name: 'login', params: {type:1}}">
          <button>医生</button>
        </router-link>
        <router-link :to="{name: 'login', params: {type:2}}">
          <button>管理员</button>
        </router-link>
      </div>
    </div>
    <div class="home_footer">
      <p>CopyRight © 2018 眼底病智能筛查系统</p>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'home',
    methods: {}
  }
</script>

<style scoped lang="scss">
  .home_title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 20px;
    img {
      width: 80px;
      vertical-align: middle;
    }
  }

  .home_wrapper {
    background-color: rgb(240, 241, 244);
    position: absolute;
    /*height: 100%;*/
    width: 100%;
    top: 88px;
    bottom: 100px;
    display: flex;
    align-items: center;
  }

  .home_icon {
    width: 100%;
    padding-left: 20%;
  }

  .home_login {
    position: absolute;
    right: 20px;
    top: 0;
    background-color: rgb(158, 158, 158);
    padding: 20px;
    p {
      font-size: 18px;
      font-weight: 500;
      margin: 10px 0;
    }
    button {
      width: 120px;
      height: 35px;
      border-radius: 5px;
      margin-left: 10px;
      background-color: #2965a8;
      color: #f7f7f7;
      font-size: 16px;
      font-weight: 300;
      border: 1px solid #2965a8;
    }
  }

  .home_footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    p {
      text-align: center;
    }
  }
</style>
